/*
 * game.js
 */



$.get("http://192.168.3.52:8888/Merchant/Pay/PayChannels", function(result) {
	var length = result.Data.length;
		console.log(result.Data);

//	console.log(result.Data.Data[0].CreateTime.substring(6, 19) - 0)
	
	var box = document.getElementById("myBox");
	var text = document.getElementById("text");
	//      var box = document.body;
	//      console.log(body)
		text.innerHTML = "共计 "+ length +" 条数据"
	for(var index = 0; index <= length; index++) {
		

		
		box.innerHTML += 	" <tr><td class='text-center active'>" + result.Data[index].ALIPAY + "</td>" +
			"<td class='text-center '>" + result.Data[index].ALIPAYDiscounts + "</td>" +
			"<td class='text-center success'>" + result.Data[index].Bank + "</td>" +
			"<td class='text-center '>" + result.Data[index].BankDiscount + "</td>" +
			"<td class='text-center '>" + result.Data[index].BankFlag + "</td>" +
			"<td class='text-center '>" + result.Data[index].ChannelName + "</td>" +
			"<td class='text-center '>" + result.Data[index].Description + "</td>" +
			"<td class='text-center '>" + result.Data[index].Digest + "</td>" +
			"<td class='text-center success'>" + result.Data[index].DigestDiscounts + "</td>" +
			"<td class='text-center '>" + result.Data[index].Id + "</td>" +
			"<td class='text-center '>" + result.Data[index].IsSkipvt + "</td>" +
			"<td class='text-center '>" + result.Data[index].MerchantId + "</td>" +
			"<td class='text-center '>" + result.Data[index].PostUrl + "</td>" +
			"<td class='text-center '>" + result.Data[index].QueryUrl + "</td>" +
			"<td class='text-center '>" + result.Data[index].ServiceName + "</td>" +
			"<td class='text-center '>" + result.Data[index].SignKey + "</td>" +
			"<td class='text-center success'>" + result.Data[index].SkipvtUrl + "</td>" +
			"<td class='text-center '>" + result.Data[index].SMS + "</td>" +
			"<td class='text-center '>" + result.Data[index].SMSDiscounts + "</td>" +
			"<td class='text-center '>" + result.Data[index].Status + "</td>" +
			"<td class='text-center '>" + result.Data[index].TENPAY + "</td>" +
			"<td class='text-center '>" + result.Data[index].TENPAYDiscounts + "</td></tr>" 
			
			
			

		
	}
});